import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Router} from 'react-router-dom'
import './index.css';
import { ThemeProvider } from '@material-ui/styles';
import {Provider,observer,inject} from "mobx-react"
import * as serviceWorker from './serviceWorker';
import CssBaseline from '@material-ui/core/CssBaseline';
import appStore from './store/index'
import App from './layout/Paperbase';

ReactDOM.render(
    <ThemeProvider theme={theme}>
        <CssBaseline />
        <Provider store={appStore}>
            <BrowserRouter basename="/" history={Router.history}>
                <App />
            </BrowserRouter>
        </Provider>
    </ThemeProvider>
    , document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
